#include<iostream>
#include<string>
#include<sw/redis++/redis++.h>
using namespace std;
sw::redis::Redis redis_cli("tcp://localhost:6379");
int main(){
    string pong = redis_cli.ping("pong");
    cout<<pong<<endl;
    cout<<redis_cli.hset("card_type:message_id",{"project_selected","project1","sub_id","123321","id_type","chat_id"})<<endl;
    vector<string> res;
    redis_cli.hgetall("card_type:message_id",std::back_insert_iterator(res));
    for(auto& e : res){
        cout<<e<<endl;
    }
    return 0;
}